const maxage =3600;
const reg = /^\/api\/comment/;
const regs = /^\/api\/admin/
module.exports = (req,res,next)=>{

    
   
    if(req.method == "GET" &&  !reg.test(req.path) && !regs.test(req.path) ){
      
        res.header("Cache-Control",`max-age=${maxage}`);
        
    }
    next();

}